package com.ruoyi.project.system.researchers.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.researchers.mapper.ResearchersMapper;
import com.ruoyi.project.system.researchers.domain.Researchers;
import com.ruoyi.project.system.researchers.service.IResearchersService;
import com.ruoyi.common.utils.text.Convert;

/**
 * researchersService业务层处理
 * 
 * @author admin
 * @date 2025-04-24
 */
@Service
public class ResearchersServiceImpl implements IResearchersService 
{
    @Autowired
    private ResearchersMapper researchersMapper;

    /**
     * 查询researchers
     * 
     * @param id researchers主键
     * @return researchers
     */
    @Override
    public Researchers selectResearchersById(Long id)
    {
        return researchersMapper.selectResearchersById(id);
    }

    /**
     * 查询researchers列表
     * 
     * @param researchers researchers
     * @return researchers
     */
    @Override
    public List<Researchers> selectResearchersList(Researchers researchers)
    {
        return researchersMapper.selectResearchersList(researchers);
    }

    /**
     * 新增researchers
     * 
     * @param researchers researchers
     * @return 结果
     */
    @Override
    public int insertResearchers(Researchers researchers)
    {
        return researchersMapper.insertResearchers(researchers);
    }

    /**
     * 修改researchers
     * 
     * @param researchers researchers
     * @return 结果
     */
    @Override
    public int updateResearchers(Researchers researchers)
    {
        return researchersMapper.updateResearchers(researchers);
    }

    /**
     * 批量删除researchers
     * 
     * @param ids 需要删除的researchers主键
     * @return 结果
     */
    @Override
    public int deleteResearchersByIds(String ids)
    {
        return researchersMapper.deleteResearchersByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除researchers信息
     * 
     * @param id researchers主键
     * @return 结果
     */
    @Override
    public int deleteResearchersById(Long id)
    {
        return researchersMapper.deleteResearchersById(id);
    }
}
